﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ExaminationTT.Rule;

namespace ExaminationTT.View
{
    public partial class ConflitInfo : Form
    {
        private IConflict _conflit;
        public ConflitInfo()
        {
            InitializeComponent();
            
        }

        public IConflict Conflit
        {
            get { return _conflit; }
            set
            {
                _conflit = value;
                _txtBox_ViolatedRule.Text = value.RuleName;
                _txtBox_ConflitType.Text = value.ConflictType;
                _txtBox_ConflitDescription.Text = value.ConflitcInfo;
            }
        }

    }
}
